package com.mf.controller;

import com.mf.service.CalculateService.Calculate3Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: lmf
 * @Create: 2024/9/4 18:58
 * Description:  第三版计算逻辑
 */
@RestController
@RequestMapping("/calculate3")
public class Calculate3Controller {
    @Resource
    private Calculate3Service calculate3Service;



    /**
     * 计算股票代码的买入位置
     */
    @GetMapping("/calculateByDm")
    public void calculate(@RequestParam("md") String md) {
        calculate3Service.calculate(md);
    }

}
